package com.example.yogurtsystem.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * user_record
 * @author 
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserRecord implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id",type = IdType.ASSIGN_UUID)
    private String id;

    /**
     * 人员id
     */
    private String userId;

    /**
     * 姓名
     */
    private String username;

    /**
     * 选择的饮品id
     */
    private String drinkId;

    /**
     * 选择的饮料品名
     */
    private String drinkName;

    /**
     * 创建日期
     */
    private Date createTime;

    /**
     * 年当前年-季度，例2021-3
     */
    private String yearQuarter;

    /**
     * 更新日期
     */
    private Date updateTime;

    /**
     * 单价
     */
    private BigDecimal drinkPrice;

    private static final long serialVersionUID = 1L;

    public UserRecord(String userId, String username, String drinkId, String drinkName,String yearQuarter,BigDecimal drinkPrice) {
        this.userId = userId;
        this.username = username;
        this.drinkId = drinkId;
        this.drinkName = drinkName;
        this.yearQuarter=yearQuarter;
        this.drinkPrice=drinkPrice;
    }

    public UserRecord(String id, String userId, String username, String drinkId, String drinkName,String yearQuarter) {
        this.id = id;
        this.userId = userId;
        this.username = username;
        this.drinkId = drinkId;
        this.drinkName = drinkName;
        this.yearQuarter=yearQuarter;
    }
}